import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const item = () => import('../views/home/index.vue')

export const createRouter = () => {
  return new Router({
    mode: 'history',
    scrollBehavior: () => ({ y: 0 }),
    routes: [
      { path: '', component: item }
    ]
  })
}
